﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="CLipList.aspx.cs" Inherits="Admin_CLipList" %>

<%@ Register Assembly="Fetco.Framework" Namespace="FetCo.Web.UI.WebControls" TagPrefix="FetCo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="titlePlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <div class="divcontent">
        <div class="search">
            <div class="cont">
                <div class="title" style="border-bottom: 1px solid #fff;">
                    <strong>Tìm Kiếm </strong>
                </div>
                <div class="box_content">
                    <ul>
                        <li>
                            <div style="width: 780px; height: 35px;">
                                <div class="divfirst" style="width: 70px;">
                                    Thành viên :</div>
                                <div class="divlast" style="width: 200px;">
                                      <asp:DropDownList runat="server" ID="ddlMember">
                                </asp:DropDownList></div>
                                <div style="width: 200px; margin-top: -5px; float: left;" class="divfirst">
                                    <asp:Button CssClass="bbutton" ID="btnSearch" OnClick="btnSearch_OnClick" runat="server"
                                        TabIndex="1" Text="Tìm Kiếm" ValidationGroup="b" />
                                    &nbsp;&nbsp;
                                    <asp:Button CssClass="bbutton" ID="btnSearchAll" OnClick="btnSearchAll_OnClick" runat="server"
                                        TabIndex="2" Text="Hiện Tất Cả" ValidationGroup="b"></asp:Button>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="display">
            <div class="control">
                <ul>
                    <li>
                        <img src="images/ar1.gif" /><asp:LinkButton ID="lbtDelete" CausesValidation="false"
                            CssClass="blue" OnClick="lbtDelete_Onclick" runat="server" OnClientClick="javascript: return confirm('Bạn có chắc là muốn xóa dòng này?');"><%=Utilitys.Dictionary["DeleteSeletedRows"]%></asp:LinkButton></li>
                </ul>
            </div>
            <div>
                <asp:Literal ID="lb_error" runat="server"></asp:Literal>
            </div>
            <div class="view">
                <FetCo:Repeater runat="server" ID="rptList" OnItemDataBound="rptList_OnItemDataBound"
                    OnItemCommand="rptList_OnItemCommand">
                    <HeaderTemplate>
                        <table cellpadding="5" cellspacing="1">
                            <thead>
                                <tr>
                                    <td align="center" class="head">
                                        <span>
                                            <%=Utilitys.Dictionary["No"] %>
                                        </span>
                                    </td>
                                    <td class="head">
                                        <asp:LinkButton ID="LinkButton6" runat="server" CommandArgument="ASC" CommandName="sortVersion">Thành viên</asp:LinkButton>
                                    </td>
                                    <td align="center" class="head" style="width: 52px;">
                                        <asp:LinkButton ID="lbtCountry" runat="server" CommandArgument="ASC" CommandName="sortOrder"><%=Utilitys.Dictionary["Order"] %></asp:LinkButton>
                                    </td>
                                    <td align="center" class="head" style="display:none;">
                                        <asp:LinkButton ID="LinkButton5" runat="server" CommandArgument="ASC" CommandName="sortDate">IsClip</asp:LinkButton>
                                    </td>
                                    <td align="center" class="head">
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument="ASC" CommandName="sortDate">Số Vote</asp:LinkButton>
                                    </td>
                                    <td align="center" class="head">
                                        <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="ASC" CommandName="sortEnable"><%=Utilitys.Dictionary["Display"] %></asp:LinkButton>
                                    </td>
                                    <td class="head" align="center">
                                        <input id="checkall" onclick='CheckSelect(this.checked);' type="checkbox" name="checkall">
                                    </td>
                                </tr>
                            </thead>
                            <tbody>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td style="text-align: center">
                                <asp:Literal ID="ltrNo" runat="server"></asp:Literal><asp:HiddenField ID="hidID"
                                    runat="server" />
                            </td>
                            <td>
                                <a href="ClipAndImages.aspx?id=<%#Eval("ClipAndImageID")%>">
                                    <asp:Literal runat="server" ID="ltrMember"></asp:Literal></a>
                            </td>
                            <td valign="top">
                                <asp:TextBox runat="server" ID="txtOrder" Width="50" Height="15px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="ki" runat="server" ControlToValidate="txtOrder"
                                    ValidationExpression="^[0-9,.,#]+$">*</asp:RegularExpressionValidator>
                            </td>
                            <td style="display:none;">
                                <asp:CheckBox ID="checkIsClip" runat="server" />
                            </td>
                            <td>
                                <asp:Literal runat="server" ID="ltrNumVote"></asp:Literal>
                            </td>
                            <td align="center">
                                <asp:CheckBox runat="server" ID="ckbEnable"></asp:CheckBox>
                            </td>
                            <td style="text-align: center">
                                <input runat="server" onclick="select_change(this.form)" id="chkDelete" type="checkbox"
                                    value='<%# DataBinder.Eval(Container.DataItem, "ClipAndImageID") %>' name="delete" />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <NoneTemplate>
                        <tr>
                            <td align="center" colspan="8">
                                Chưa có dữ liệu
                            </td>
                        </tr>
                    </NoneTemplate>
                    <FooterTemplate>
                        </tbody> </table>
                    </FooterTemplate>
                </FetCo:Repeater>
            </div>
        </div>
        <div style="padding-top: 12px;" align="center">
            <PagerV2:PagerV2_8 ID="hyperlinkPager" runat="server" CompactModePageCount="5" GenerateFirstLastSection="true"
                OnCommand="pager_Command" GeneratePagerInfoSection="false" GenerateSmartShortCuts="false"
                GenerateHiddenHyperlinks="false" NormalModePageCount="5" />
        </div>
        <div>
            <asp:Button ID="btnSave" CssClass="bbutton" OnClick="btnSave_OnClick" runat="server" />
        </div>
    </div>

    <script type="text/javascript">
var k = document.getElementById("<%=btnSearch.ClientID%>");
k.value = "<%=Utilitys.Dictionary["Search"]%>";
var h = document.getElementById("<%=btnSave.ClientID%>");
h.value = "<%=Utilitys.Dictionary["Update"]%>";
    </script>

</asp:Content>
